﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UIFW;
using UnityEngine.UI;

using System;

public class InGameUIForm :  BaseUIForm{


    // Use this for initialization

    public GameObject tipText;
    Text text;
    Text roundText;
    Text clockText;


    public GameObject needObj;
    public GameObject keyObj;

    public GameObject clockObj;
    public GameObject skillAdvObj;
    public GameObject skillVamObj;

    private int rounds = 12;//控制回合数
    private int coolTime = 12;//冷却时间
    public GameObject btn; //技能按钮
    private bool isSkill=true;
    public GameObject roundObj;//回合倒计时
    private int tmp;
    public static float timer=30f;
    public void Awake()
    {
        CurrentUIType.uiShowType = UIShowType.Normal;
        CurrentUIType.uiShowMode = UIShowMode.Normal;
        CurrentUIType.uiTransparentType = UITransparentType.AllTrans;

        rigisterButtonEvent("BtnSwitch",
            p =>
            {

                //TODO:切换镜头操作
            });
        rigisterButtonEvent("BtnSkill",
            m =>
            {
                
            });

        rigisterButtonEvent("Btn1",
            q =>
            {
               
            });

        rigisterButtonEvent("Btn2",
            q =>
            {
              
            });

        rigisterButtonEvent("Btn3",
            q =>
            {
             
            });

        rigisterButtonEvent("Btn4",
            q =>
            {
             
            });

        rigisterButtonEvent("BtnTip",
            b =>
            {
             

            });

        rigisterButtonEvent("BtnSetting",
            t =>
            {
             
                //TODO:设置按钮
            });
        //TODO:游戏结束后弹出结束UI openUIForm("GameOverUIForm");
    }

    public void Start()
    {

    }

  

    public void Update()
    {
        
    }
}
